function delete_confirm()
{
	if(confirm('确定删除？')){
		return true;
	}else{
		return false;
	}
}

function check_radio(obj, id)
{
	$('#'+id).val($(obj).val());
}

function click_check(obj, id)
{
	var checked = $(obj).attr('checked');
	if(checked == true){
		$('#'+id).removeAttr('checked');
	}
}

function select_units(id)
{
	var units = $('#'+id+' option:selected').text();
	$('#units').val(units);
}

function select_room(id)
{
	var name = $('#'+id+' option:selected').text();
	$('#name').val(name);
}

/*
function check_name_exists()
{
	var name = $("#name").val();
	
	if(name != ''){
		$.get('ajax.php?m=business&a=check_name', {'name':name}，function(json){
			if(json.status == 'OK'){
				alert('名称已存在');
			}else{
				alert('名称不存在');
			}
		},'json')
	}else{
		alert('请输入名称！');
	}
	
}
*/